<?php 
include("helper/DBOperation.php");
$dbObj = new DBOperation();


$from = $_REQUEST['from'];
$subject = $_REQUEST['subject'];
$subject =str_replace("%20", " ", $subject);
$date = date("Y-m-d H:i:s",strtotime($_REQUEST['date']));
$body = $_REQUEST['body'];
$subject =str_replace("%20", " ", $subject);
$body =str_replace("=20", " ", $body);	
$body =str_replace("=A0", " ", $body);	
$attach = $_REQUEST['attach'];


		//$insert_keyvalue['id'] = NULL;
		$insert_keyvalue['from'] = $from;
		$insert_keyvalue['subject'] = $subject;
		$insert_keyvalue['date'] =$date;
		$insert_keyvalue['body'] = $body;
		$insert_keyvalue['attach'] = $attach;
		$dbObj->insertRecords('tbl_emails',$insert_keyvalue);

?>
